import React, { Component } from 'react';
import './TableList';

export interface TableProps {
    titleList: Array<string>;
}

export default class TableList extends Component<TableProps> {
    render() {
        const { titleList } = this.props;
        return (
            <div className="table-box">
                {
                    titleList.map((v: string, i: number) => (
                        <div className="list-item" key={i}>
                            {v + ':'}
                        </div>
                    ))
                }
            </div>
        );
    }
}